package com.ruoyi.employee.fileupload;

import com.ruoyi.employee.service.UploadFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("employee")
public class UploadFile {
    @Autowired
    private UploadFileService uploadFileService;
    @PostMapping("uploadfile")
    public String uploadFile(String fileName){
        System.out.println("fileName:"+fileName);
        return "success";
    }
}